<body>
<div class="layui-fluid">
	<div class="layui-row layui-col-space15">
		<div class="layui-col-md12">
			<div class="layui-card">
				<div class="layui-card-header">{$page_name}</div>
				<div class="layui-card-body" pad15>
<form action="{:url(request()->action())}" method="post">
					<div class="layui-form">
						<div class="layui-form-item">
							<label class="layui-form-label">所属角色</label>
							<div class="layui-input-inline">
								<select name="role_id" lay-filter="role_id">
								{volist name="role_lists" id="vo"}
									<option value="{$vo.id}" {if $vo.id == $info.role_id} selected {/if} data-content="{$vo.info}">{$vo.name} {if $vo.status == 0}[&nbsp;禁用&nbsp;]{/if}</option>
								{/volist}
								</select> 
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">用户名</label>
							<div class="layui-input-inline">
								<input type="text" class="layui-input" name="username" autocomplete="off" value="{$info.username}" lay-verify="required|username" placeholder="请输入用户名">
							</div>
							<div class="layui-form-mid layui-word-aux">请输入用户名（用于登陆）</div>
						</div>
						{if $info.id == 0}
						<div class="layui-form-item">
							<label class="layui-form-label">密码</label>
							<div class="layui-input-inline">
								<input type="password" class="layui-input" name="pass" autocomplete="off" value="" lay-verify="required|pass" placeholder="请输入密码">
							</div>
							<div class="layui-form-mid layui-word-aux">请输入密码（用于登陆）</div>
						</div>
						{else/}
						<div class="layui-form-item">
							<label class="layui-form-label">密码</label>
							<div class="layui-input-inline">
								<input type="password" class="layui-input" name="pass" autocomplete="off" value="" lay-verify="pass" placeholder="请输入密码">
							</div>
							<div class="layui-form-mid layui-word-aux">如果留空，表示不修改密码（用于登陆）</div>
						</div>
						{/if}
						<div class="layui-form-item">
							<label class="layui-form-label">姓名</label>
							<div class="layui-input-inline">
								<input type="text" class="layui-input" name="name" value="{$info.name}" lay-verify="" placeholder="请输入姓名">
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">电话</label>
							<div class="layui-input-inline">
								<input type="text" class="layui-input" name="tel" value="{$info.tel}" lay-verify="" placeholder="请输入电话">
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">邮箱</label>
							<div class="layui-input-inline">
								<input type="text" class="layui-input" name="email" value="{$info.email}" lay-verify="" placeholder="请输入邮箱">
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						
						<div class="layui-form-item">
							<label class="layui-form-label">启用状态</label>
							<div class="layui-input-block">
								<input type="radio" name="status" value="1" title="开启" {if $info.status == 1} checked {/if}>
								<input type="radio" name="status" value="0" title="关闭" {if $info.status == 0} checked {/if}>
							</div>
						</div>
						<div class="layui-form-item">
							<div class="layui-input-block">
								<input name="id" type="hidden" value="{$info.id}">
								<button class="layui-btn" 
									lay-submit 
									lay-filter="wy-submit"
									wy-changetabid="adminuser_index"
									wy-closetabid="adminuser_info"
									wy-reloadtable="wy_table_lists"
								>确认提交</button>
								<button type="reset" class="layui-btn layui-btn-primary">重新填写</button>
							</div>
						</div>
					</div>
</form>
				</div>
			</div>
		</div>
	</div>
</div>
</body>